﻿using System;

using EMan.Common.EnterpriseStructure;
using EMan.Interface.EnterpriseStructure.Departments;

using TrueCode.Core.Aspects;

namespace EMan.Interface.EnterpriseStructure.Employees
{
  public partial class EmployeeEditable : IStructureTreeNode
  {
    private readonly DepartmentEditable _department;

    public EmployeeEditable( [ NotNull ] DepartmentEditable department, [ NotNull ] Employee entity, bool isNew = false ) : this( entity, isNew)
    {
      if( department == null ) throw new ArgumentNullException( "department" );
      _department = department;
    }

    public string Title
    {
      get { return NickName; }
    }
  }
}